export default function myNumReducer(state, action){
    console.log("myReducer.....",state,action)
    const step = action.step || 1;
    if (action.type==="SUB"){
        return  state-step;
    }else if(action.type==="ADD"){
        return  state+step;
    }
    else{
        return state;
    }
}